import requests, json

url = 'http://81.68.107.158:33689/ppt/export'
rData = [
	{
	"categories": [
		"East",
		"West",
		"Midwest"
	],
	"series": {
		'A': [19.2,21.4,16.7],
		'B': [20.2,30.4,10.7],
		'C': [15.2,16.4,19.7]
	},
	"title": "B班级选项占比1111",
	"chartType": "RADAR"
	},

	{
	"categories": [
		'A', 'B', 'C', 'D'
	],
	"series": {
		'AAA': [80, 10, 9, 10]
	},
	"title": "A班选项占比",
	"chartType": "LINE"
	},

	{
	"categories": [
		'A', 'B', 'C', 'D'
	],
	"series": {
		'AAA': [80, 10, 9, 10]
	},
	"title": "A班选项占比",
	"chartType": "PIE"
	},

	{
	"categories": [
		'A', 'B', 'C', 'D'
	],
	"series": {
		'AAA': [80, 10, 9, 10]
	},
	"title": "A班选项占比",
	"chartType": "DOUGHNUT"
	},

	{
	"categories": [
		'A', 'B', 'C', 'D'
	],
	"series": {
		'AAA': [80, 10, 9, 10]
	},
	"title": "A班选项占比",
	"chartType": "RADAR"
	},

	{
	"categories": [
		'A', 'B', 'C', 'D', 'E', 'F'
	],
	"series": [
		[80, 10, 9, 10, 12, 13],
		[80, 10, 9, 10, 12, 13],
		[80, 10, 9, 10, 12, 13],
		[80, 10, 9, 10, 12, 13],
		[80, 10, 9, 10, 12, 13],
		[80, 10, 9, 10, 12, 13]
	],
	"title": "A班选项占比",
	"chartType": "TABLE"
	}

]
response = requests.post(url, json=rData)
data = response.content
with open("ttt.pptx", 'wb') as s:
    s.write(data)